<?php

namespace App\Service\Index;

use App\Model\FeedBack;
use App\Model\Qa;
use App\Model\UserProfile;
use App\Service\BaseService;

/**
 * 常见问题
 */
class QaService extends BaseService
{
    public function handle()
    {
        $userId = $this->getUserId();
        $profile = UserProfile::getProfile($userId);
        $ret['list'] = Qa::getList($profile ? $profile->gender : -1);
        return $ret;
    }
}
